package com.softserveinc.ita.kaiji.web.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;
/**
 * 
 * @author Bohdan Shaposhnik
 * @since 15.04.2014
 * @version 1.0
 *
 */
@Controller
public class LoginController {
	
	private static Logger logger = Logger
			.getLogger(LoginController.class);
	
	@RequestMapping(value = "/login", method = RequestMethod.GET)
	public ModelAndView login(
		@RequestParam(value = "error", required = false) String error) {
 
		ModelAndView model = new ModelAndView();
		if (error != null) {
			model.addObject("error", "ERROR");
		}
 
		model.setViewName("login");
 
		return model;
 
	}
}
